home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
art&graf.ix
/
art-3488
/
macros
/
demo5.aim
< prev
next >
Wrap
Text File
|
1990-10-13
|
540b
|
20 lines
* example of shading correction by subtraction of
* the background.
* background is calculated by maxmin filtering
*
ton * timer on
readf scheme,A * read image
* thresholding is not possible
* with uncorrected image:
thresh A,B,1
* calculate the background by
* maxmin filtering
lmax A,B,31 * max filter
lmin B,B,31 * min filter
sub A,B,255 * subtract background
* obtain from the corrected image
* a binary image by thresholding
thresh B,B,1,220 * threshold
toff